﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using SploreServer.Data.Common;
using SploreServer.Data.Session;

namespace SploreServer.Behaviors.Session
{
    [ServiceContract]
    public interface ISession
    {
        [OperationContract]
        ResultPackage<OpenSessionResult, SessionToken> OpenSession(string theUserName, string thePassword);

        [OperationContract]
        ResultPackage<IsSessionOpenResult> IsSessionOpen(SessionToken theSessionToken);

        [OperationContract]
        ResultPackage<CloseSessionResult> CloseSession(SessionToken theSessionToken);
    }
}
